import request from '@/utils/request'
import qs from "qs"
export default{


    // /分页查询

    findPageInfo(pageNum,pageSize,name,state){

      return request({

        url:'/api-sys/logisticsCompany/logisticsCompanys',
        method:'get',
        params:{pageNum,pageSize,name,state}
      })
    },

    // 根据id进行查询
    getById(id){

        return request({

            url:'/api-sys/logisticsCompany/getById',
            method:'get',
            params:{id}
          })

    },


    // 新增
    add(logisticsCompany){

        var data=qs.stringify(logisticsCompany);
        return request({

            url:'/api-sys/logisticsCompany/addList',
            method:'post',
            data
        })
    },

    // 修改数据
    updateList(logisticsCompany){

        var data=qs.stringify(logisticsCompany);
        return request({

            url:'/api-sys/logisticsCompany/updateList',
            method:'post',
            data
        })
    },

    // 编辑接口

    updateById(logisticsCompany)
    {

        var data=qs.stringify(logisticsCompany);
        return request({

            url:'/api-sys/logisticsCompany/logisticsCompany',
            method:'put',
            data
        })
    },
    // 删除

    deleyeById(id){
      
        return request({

            url:`/api-sys/logisticsCompany/logisticsCompany/${id}`,
            method:'delete',
         
        })

    }
}